 <script language="javascript">
    
    function insertPhpFile(filename) {
        
      
            str = '<a href="/data/php/'+filename+'">'+filename+'</a>';
            insertText(str);

            $('#dialogBox').dialog('close');    
        
    }
    
    
    
    </script>   
   
   
   <ul class="snapol_list" folder="/data/php">
   <li><a href="#" onclick="insertPhpFile('[filename]');">[filename]</a>
      </li></ul>
check box als form einfügen